package com.edu.java;


public class StackFrameTest {

    public static void main(String[] args) {
        StackFrameTest test = new StackFrameTest();
        test.method1();
    }

    public void method1(){
        System.out.println("方法1开始执行");
        method2();
        System.out.println("方法1执行结束");

    }

    public int method2(){
        System.out.println("方法2开始执行");
        int i = 10;
        int m = (int) method3();
        System.out.println("方法2即将结束");
        return i + m;

    }


    public double method3(){
        System.out.println("方法3开始执行");
        double j = 20.0;
        System.out.println("方法3即将结束");
        return j;

    }


}
